From: Georges Basile Stavracas Neto Date: Tue, 9 Aug 2022 21:31:46 +0000 (-0300) Subject: appDisplay: Rename _lastOvershootTimeoutId X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~57 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=692de0eb952beabe1ef484dbf341516152378f54;p=gnome-shell.git appDisplay: Rename _lastOvershootTimeoutId Trivial renaming to _overshootTimeoutId. No functional changes. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 3b43f0d33..9ede9a690 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -637,7 +637,7 @@ var BaseAppView = GObject.registerClass({ () => this._redisplay(), this); // Drag n' Drop - this._lastOvershootTimeoutId = 0; + this._overshootTimeoutId = 0; this._delayedMoveData = null; this._dragBeginId = 0; @@ -838,9 +838,9 @@ var BaseAppView = GObject.registerClass({ } _resetOvershoot() { - if (this._lastOvershootTimeoutId) - GLib.source_remove(this._lastOvershootTimeoutId); - this._lastOvershootTimeoutId = 0; + if (this._overshootTimeoutId) + GLib.source_remove(this._overshootTimeoutId); + this._overshootTimeoutId = 0; } _handleDragOvershoot(dragEvent) { @@ -856,7 +856,7 @@ var BaseAppView = GObject.registerClass({ return; } - if (this._lastOvershootTimeoutId > 0) + if (this._overshootTimeoutId > 0) return; let targetPage; @@ -868,14 +868,14 @@ var BaseAppView = GObject.registerClass({ if (targetPage < 0 || targetPage >= this._grid.nPages) return; // don't go beyond first/last page - this._lastOvershootTimeoutId = + this._overshootTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, OVERSHOOT_TIMEOUT, () => { this._resetOvershoot(); this.goToPage(targetPage); return GLib.SOURCE_REMOVE; }); - GLib.Source.set_name_by_id(this._lastOvershootTimeoutId, - '[gnome-shell] this._lastOvershootTimeoutId'); + GLib.Source.set_name_by_id(this._overshootTimeoutId, + '[gnome-shell] this._overshootTimeoutId'); } _onDragBegin() {